#include "headfiles.h"

using namespace std;

int main(int argc, char **argv) {
	if (argc != 3) {
		cout << "Usage: " << argv[0] << "node_file1 node_file2" << endl;
		return 0;
	}

	string file_name1(argv[1]);
	string file_name2(argv[2]);

	NODE *head1 = createBinaryTree((char *)file_name1.c_str());
	NODE *head2 = createBinaryTree((char *)file_name2.c_str());

	bool ret_code;
	ret_code = checkSubBinaryTree(head1, head2);
	if (ret_code) {
		cout << "Tree2 is a subtree of tree1" << endl;
	}
	else {
		cout << "Tree2 is NOT a subtree of tree1" << endl;
	}

	return 0;
}

